<?php
/**
 * Template name: Cadastro
 * Cadastro code file
 * @package WordPress
 * @subpackage modulo_padrao
 */
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head>
	<?php get_header(); ?>
</head>
<body>	
	
	<!-- Wrapper -->
	<div id="page" class="cadastro">
		<?php include(TEMPLATEPATH . "/inc/cabecalho.php"); ?>
		<!-- Content -->
		<div class="content">
			<div id="container">
				<div class="wrapper">
					<!-- Me Apague -->
						<div class="title-explain">
							Módulo Padrão <?php echo MPLIM_VERSION;?> - cadastro.php
						</div>
						<p>
							Esse arquivo é o cadastro.php. Esse arquivo é cadastrar novo usuário do site.<br />
							Esse arquivo só funciona com o permalink customizado ativado. E se o usuário puder se cadastrar no site.
						</p>
					<!-- //Me Apague -->
					
					<h1 class="page-title txt-replace pngfix"><span class="ico-title pngfix"><?php single_post_title();?></span></h1>
						
						<div class="entry">
							<div class="form-cadastro">
								<?php if($_POST):?>
									<p class="error">
										<?php
											foreach ($result as $erro)
											{
												foreach ($erro as $error)
												{
													echo $error[0];
													break;
												}
											}
										?>
									</p>
								<?php endif;?>
								<?php

									if($_GET['status'] == 'success')
									{
										echo '<p class="txt-replace">Cadastro efetuado com sucesso.</p>';
									}

								?><br />
								<form name="registerform" id="registerform" action="<?php echo site_url('wp-login.php?action=register', 'login_post') ?>" method="post">
									<label class="fld">
										<span>
											<input type="text" tabindex="1" size="20" value="Usuário*" title="Usuário*" class="labeled" id="user_login" name="user_login" />
										</span>
									</label><br />
									
									<label class="fld">
										<span>
											<input type="text" tabindex="1" size="20" value="Email*" title="Email*" class="labeled" id="user_email" name="user_email" />
										</span>
									</label><br />
									
									<label class="fld senha">
										<span>
											<input type="password" tabindex="1" size="20" value="Senha*" title="Senha*" class="labeled" id="pass" name="pass" />
										</span>
									</label><br />
									
									<label for="user_email" class="txt-replace">min. 4 caracteres</label>
									
									<?php do_action('register_form'); ?>
									<p class="button-container">
										<span class="required txt-replace">*Campo obrigatório</span>
										<button type="submit">
											<span class="primary-button">
												<span>Enviar</span>
											</span>
										</button>
									</p>
								</form>
								
							</div>
						</div>
						
				</div>
				<?php get_sidebar();?>
			</div>
		</div>
		<!-- // Content -->
		<?php include(TEMPLATEPATH."/inc/rodape.php")?>
	</div>
	<!-- // Wrapper -->
		
<?php get_footer(); ?>
</body>
</html>